Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support placement type for disks #3555

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

sharsonia
Copy link
Collaborator

@sharsonia sharsonia commented Dec 13, 2024

Currently, Ephemeral OS Disk placement value is hardcoded in LISA. This PR enables LISA to fetch the Ephemeral OS disk placement type value from the SKU capability in Azure VMs.
To allow this, DiskPlacementType setting and supported values are added to the AzureDiskOptionSettings.
LISA user can also pass the EphemeralDiskPlacementType from Runbook to deploy VM with specific supported placement type value.

For Ephemeral OS Disk placement types available, refer
https://learn.microsoft.com/en-us/azure/virtual-machines/ephemeral-os-disks-faq

@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 7 times, most recently from c9f8370 to bf0c1bf Compare December 13, 2024 02:17
lisa/schema.py Outdated Show resolved Hide resolved
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 5 times, most recently from 245208c to a23371e Compare December 13, 2024 04:09
@squirrelsc
Copy link
Member

Currently, Ephemeral OS Disk placement value is hardcoded in LISA. This PR enables LISA to fetch the Ephemeral OS disk placement type value from the SKU capability in Azure VMs. To allow this, EphemeralDiskPlacementType setting and supported values are added to the DiskOptionSettings in the schema. LISA user can also pass the EphemeralDiskPlacementType from Runbook to deploy VM with specific supported placement type value.

For Ephemeral OS Disk placement types available, refer https://learn.microsoft.com/en-us/azure/virtual-machines/ephemeral-os-disks-faq

How is the placement type used for? If it's set in runbook only, it doesn't need to be in the feature level.

lisa/features/disks.py Outdated Show resolved Hide resolved
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 6 times, most recently from c11802f to 084292f Compare December 16, 2024 22:03
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch from 084292f to 92ec624 Compare January 15, 2025 02:17
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 15 times, most recently from 6bb7f1c to 1ef5d37 Compare January 23, 2025 22:39
@sharsonia sharsonia removed the DRAFT label Jan 24, 2025
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 2 times, most recently from e1fafb9 to 26031f8 Compare January 26, 2025 00:03
@squirrelsc
Copy link
Member

@LiliDeng LGTM

@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 3 times, most recently from 6883ee6 to 84aacb6 Compare January 27, 2025 23:12
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch 3 times, most recently from a1429a4 to bf42346 Compare February 4, 2025 16:36
@sharsonia sharsonia force-pushed the SupportPlacementTypeForDisks branch from bf42346 to 3e8cc1d Compare February 4, 2025 17:14
@LiliDeng LiliDeng merged commit 1a233e3 into main Feb 5, 2025
45 checks passed
@LiliDeng LiliDeng deleted the SupportPlacementTypeForDisks branch February 5, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants